Skip to content

Conversation

@codyrancher
Copy link
Member

@codyrancher codyrancher commented Oct 28, 2025

Summary

Fixes #15658

Technical notes summary

This is caused because the extension has copied an old version of the resource-class which doesn't include show configuration.
This will now check to see if it exists and if it doesn't it will use the latest definition and bind the resource to it.

Areas or cases that should be tested

Show configuration, show labels and annotations in the masthead.

Just a note, if you refresh the detail page the new detail page will not be rendered. I commented here rancher/kubewarden-ui#1333 (comment)

Areas which could experience regressions

Show configuration, show labels and annotations in the masthead.

Screenshot/Video

show-configuration-extension.mp4

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility
  • The PR has considered, and if applicable tested with, the three Global Roles Admin, Standard User and User Base

@a110605
Copy link
Member

a110605 commented Nov 5, 2025

Tested with harvester standalone UI with this PR change is good.

But for Rancher harvester integration mode, using developer load harvester ui extension in extension page.

There is still error in console.

Screenshot 2025-11-05 at 11 45 21 AM

@codyrancher codyrancher force-pushed the show-configuration-extensions branch from 62de1e9 to ce9bcb5 Compare November 5, 2025 18:22
@codyrancher
Copy link
Member Author

codyrancher commented Nov 5, 2025

Tested with harvester standalone UI with this PR change is good.

But for Rancher harvester integration mode, using developer load harvester ui extension in extension page.

There is still error in console.
Screenshot 2025-11-05 at 11 45 21 AM

I resolved this issue. It turns out that dynamic importing appears to be a problem in harvester and I just decided to work around it since it's not necessary for show configuration.

harvester-show.mp4

Just to preempt a possible concern. We don't show the config tab due to 63d2bcc#diff-65d145eecdf6d47052fa05eb10aad1c81026a913269c7b60ce8da494292dc0a9R41-R44 . We may want to revisit this but I don't think it needs to be changed now.

@codyrancher codyrancher force-pushed the show-configuration-extensions branch from ce9bcb5 to 2bacc73 Compare November 5, 2025 18:27
Comment on lines +28 to +31
export function importDrawer(name) {
return () => undefined;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't impact anything in harvester. This is necessary if we want dynamic importing to work in the future.

@codyrancher codyrancher force-pushed the show-configuration-extensions branch from 2bacc73 to 34ac80c Compare November 5, 2025 20:08
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes like this are to fix issues I saw in CI.
image

It appears that we have some webpack issues in some extensions which are treated differently in other as well as dashboard.

Copy link
Member

@a110605 a110605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally with harvester standalone and rancher integration mode.
Show configuration button work well on both modes. Thanks for the fix.

fixed_show_config.mov

@codyrancher codyrancher merged commit 9ffcaff into rancher:master Nov 6, 2025
60 of 62 checks passed
@codyrancher codyrancher deleted the show-configuration-extensions branch November 6, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show configuration displayed and not working

2 participants